package d4_thread_safe;

/**
 * 2024/6/23 模拟线程安全问题
 */
public class ThreadTest {
    public static void main(String[] args) {

        //1.创建一个账户对象
        Account acc = new Account("ABC-II0",100000);

        //2.定义一个线程类
        new DrawThread(acc,"小明").start();//小明
        new DrawThread(acc,"小红").start();//小红
    }
}
